﻿using MDPM.Foundation.SpecificationsForEntityModel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MDPM.EntitiyModels.Common
{
    /// <summary>
    /// 通用的地址（Name表示国家，Description表示合成的详细地址）
    /// </summary>
    public class CommonAddress : Entity
    {
        /// <summary>
        /// 省份
        /// </summary>
        [StringLength(50)]
        public string Province { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        [StringLength(50)]
        public string City { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        [StringLength(50)]
        public string Region { get; set; }
        /// <summary>
        /// 街道
        /// </summary>
        [StringLength(100)]
        public string Street { get; set; }
        /// <summary>
        /// 邮政编码
        /// </summary>
        [StringLength(6, MinimumLength = 6)]
        public string PostCode { get; set; }

    }
}
